package com.yunji.app.product;

import com.yunji.common.base.BaseController;
import com.yunji.common.base.response.Response;
import com.yunji.common.base.response.ResponseHelper;
import com.yunji.product.business.ProductTypeBusiness;
import com.yunji.product.domain.ProductTypeDO;
import com.yunji.product.params.ProductTypeParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package com.yunji.app.order
 * @FileName GateWayProductTypeController.java
 * @Copyright Copyright © 2024 云集互联. All Rights Reserved
 * @Company com
 * @Version 1.0
 * @Since JDK1.8.0_201
 * @CreateTime 2024-06-10 23:40:03
 * @Description 产品类型
 * @Modification History
 * Author					History Time			Version			Description
 * -------------------------------------------------------------------------------
 * HuaAo0803@163.com	2024-06-10 23:40:03		1.0				1.0
 */
@RestController
@Api(tags = "移动端-产品类型")
@RequestMapping("/gateway/productType/")
public class GateWayProductTypeController extends BaseController {
    @Resource
    ProductTypeBusiness business;

    @ApiOperation("员工代理商可绑定商品类型")
    @GetMapping("/list")
    public Response<List<ProductTypeDO>> productType(ProductTypeParam param) {
        return ResponseHelper.successWithPage(business.search(param));
    }
}